

function t1(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content1">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';
        page += '<div class="renewal r1" onclick="renewal(1,1)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img1">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang1"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }

                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page+='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,1)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input1"/>';
        page += '</div>';
        page += '<div class="Input1">';
        page += '<div class="text text1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t2(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content2">';
        page += '<div class="photoframe2">';
        page += '<div class="album-old">';
        page += '<div class="renewal r2" onclick="renewal(1,2)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img2">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang2"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }

                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b2-1.png" alt="" class="photoframe2-img" />';
        page += '<div class="photoframe3">';
        page += '<div class="album-old">';
        page += '<div class="renewal r2_1" onclick="renewal(2,3)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img3">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang3"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }

                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page+='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,7)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input7"/>';
        page += '</div>';
        page += '<div class="Input7">';
        page += '<div class="text text7">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t3(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content3">';
        page += '<div class="photoframe4">';
        page += '<div class="album-old">';
        page += '<div class="renewal r3" onclick="renewal(1,4)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img4">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang4"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe5">';
        page += '<div class="album-old">';
        page += '<div class="renewal r4" onclick="renewal(2,5)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img5">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang5"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);
                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b3-2.png" alt="" class="content3-img"/>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,2)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input2"/>';
        page += '</div>';
        page += '<div class="Input2">';
        page += '<div class="text text2">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t4(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content4">';
        page += '<div class="photoframe photoframe6">';
        page += '<div class="album-old">';
        page += '<div class="renewal r5" onclick="renewal(1,6)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img6">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang6"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe7">';
        page += '<div class="album-old">';
        page += '<div class="renewal r6" onclick="renewal(2,7)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img7">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang7"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe8">';
        page += '<div class="album-old">';
        page += '<div class="renewal r8" onclick="renewal(3,8)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img8">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang8"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe9">';
        page += '<div class="album-old">';
        page += '<div class="renewal r9" onclick="renewal(4,9)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img9">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang9"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In2">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,3)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input3"/>';
        page += '</div>';
        page += '<div class="Input3">';
        page += '<div class="text text3 ">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t5(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content5">';
        page += '<div class="photoframe photoframe10">';
        page += '<div class="album-old">';
        page += '<div class="renewal r10" onclick="renewal(1,10)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img10">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang10"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
//      page += '</div>';
        page += '<div class="photoframe photoframe11">';
        page + '=<div class="album-old">';
        page += '<div class="renewal r11" onclick="renewal(2,11)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img11">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang11"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page + '=</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe12">';
        page += '<div class="album-old">';
        page += '<div class="renewal r12" onclick="renewal(3,12)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img12">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang12"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page +='</div>';
        page += '</div>';
        page += '</div>';
//      page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b5-2.png" alt="" class="content5-img"/>';
        page += '<div class="In In3">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,4)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入18个字" maxlength="18" value=""  class="input input4"/>';
        page += '</div>';
        page += '<div class="Input4">';
        page += '<div class="text text4">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入18个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t6(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content6">';
        page += '<div class="photoframe photoframe13">';
        page += '<div class="album-old">';
        page += '<div class="renewal r13" onclick="renewal(1,13)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img13">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang13"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe14">';
        page += '<div class="album-old">';
        page += '<div class="renewal r14" onclick="renewal(2,14)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img14">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang14"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe15">';
        page += '<div class="album-old">';
        page += '<div class="renewal r15" onclick="renewal(3,15)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img15">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang15"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In4">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,5)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入44个字" maxlength="44" value=""  class="input input5"/>';
        page += '</div>';
        page += '<div class="Input5">';
        page += '<div class="text text5">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入44个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t7(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content7">';
        page += '<div class="photoframe photoframe16">';
        page += '<div class="album-old">';
        page += '<div class="renewal r16" onclick="renewal(1,16)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img16">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang16"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe17">';
        page += '<div class="album-old">';
        page += '<div class="renewal r17" onclick="renewal(2,17)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img17">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang17"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe18">';
        page += '<div class="album-old">';
        page += '<div class="renewal r18" onclick="renewal(3,18)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img18">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang18"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe19">';
        page += '<div class="album-old">';
        page += '<div class="renewal r19" onclick="renewal(4,19)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img19">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang19"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b7-1.png" alt="" class="content7-img"/>';
        page += '<div class="In In5">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,6)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入33个字" maxlength="33" value=""  class="input input6"/>';
        page += '</div>';
        page += '<div class="Input6">';
        page += '<div class="text text6">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
            else{
                page+=text;
            }
        }
        else{
            page+="最多输入33个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })

}
function t8(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content8">';
        page += '<div class="photoframe photoframe20">';
        page += '<div class="album-old">';
        page += '<div class="renewal r20" onclick="renewal(1,20)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img20">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang20"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe21">';
        page += '<div class="album-old">';
        page += '<div class="renewal r21" onclick="renewal(2,21)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img21">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang21"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In5">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,8)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入36个字" maxlength="40" value=""  class="input input8"/>';
        page += '</div>';
        page += '<div class="Input8">';
        page += '<div class="text text8">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
            else{
                page+=text;
            }
        }
        else{
            page+="最多输入36个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })

}
function t9(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content9">';
        page += '<div class="photoframe photoframe22">';
        page += '<div class="album-old">';
        page += '<div class="renewal r22" onclick="renewal(1,22)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img22">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang22"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe23">';
        page += '<div class="album-old">';
        page += '<div class="renewal r23" onclick="renewal(2,23)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img23">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang23"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe24">';
        page += '<div class="album-old">';
        page += '<div class="renewal r24" onclick="renewal(3,24)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img24">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang24"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In4">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,9)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input9"/>';
        page += '</div>';
        page += '<div class="Input9">';
        page += '<div class="text text9">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t10(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content10">';
        page += '<div class="photoframe photoframe25">';
        page += '<div class="album-old">';
        page += '<div class="renewal r25" onclick="renewal(1,25)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img25">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang25"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe26">';
        page += '<div class="album-old">';
        page += '<div class="renewal r26" onclick="renewal(2,26)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img26">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang26"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe27">';
        page += '<div class="album-old">';
        page += '<div class="renewal r27" onclick="renewal(3,27)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img27">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang27"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b10-1.png" alt="" class="content10-img"/>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b10-1.png" alt="" class="content10-img1"/>';
        page += '<div class="In In4">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,10)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入24个字" maxlength="24" value=""  class="input input10"/>';
        page += '</div>';
        page += '<div class="Input10">';
        page += '<div class="text text10">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入24个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t11(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content11">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';
        page += '<div class="renewal r28" onclick="renewal(1,28)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img28">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang28"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }

                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page+='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,11)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="40" value=""  class="input input11"/>';
        page += '</div>';
        page += '<div class="Input11">';
        page += '<div class="text text11">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t12(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content12">';
        page += '<div class="photoframe photoframe29">';
        page += '<div class="album-old">';
        page += '<div class="renewal r29" onclick="renewal(1,29)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img29">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang29"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe30">';
        page += '<div class="album-old">';
        page += '<div class="renewal r30" onclick="renewal(2,30)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img30">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang30"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe31">';
        page += '<div class="album-old">';
        page += '<div class="renewal r31" onclick="renewal(3,31)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img31">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang31"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe32">';
        page += '<div class="album-old">';
        page += '<div class="renewal r32" onclick="renewal(4,32)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img32">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang32"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b12-1.png" alt="" class="content12-img"/>';
        page += '<div class="In In2">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,12)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input12"/>';
        page += '</div>';
        page += '<div class="Input12">';
        page += '<div class="text text12 ">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t13(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content13">';
        page += '<div class="photoframe photoframe33">';
        page += '<div class="album-old">';
        page += '<div class="renewal r33" onclick="renewal(1,33)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img33">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang33"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe34">';
        page += '<div class="album-old">';
        page += '<div class="renewal r34" onclick="renewal(2,34)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img34">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang34"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe35">';
        page += '<div class="album-old">';
        page += '<div class="renewal r35" onclick="renewal(3,35)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img35">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang35"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe36">';
        page += '<div class="album-old">';
        page += '<div class="renewal r36" onclick="renewal(4,36)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img36">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang36"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b12-1.png" alt="" class="content12-img"/>';
        page += '<div class="In In2">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,13)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入32个字" maxlength="32" value=""  class="input input13"/>';
        page += '</div>';
        page += '<div class="Input13">';
        page += '<div class="text text13 ">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入32个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t14(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content14">';
        page += '<div class="photoframe photoframe37">';
        page += '<div class="album-old">';
        page += '<div class="renewal r37" onclick="renewal(1,37)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img37">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang37"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe38">';
        page += '<div class="album-old">';
        page += '<div class="renewal r38" onclick="renewal(2,38)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img38">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang38"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe39">';
        page += '<div class="album-old">';
        page += '<div class="renewal r39" onclick="renewal(3,39)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img39">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang39"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe40">';
        page += '<div class="album-old">';
        page += '<div class="renewal r40" onclick="renewal(4,40)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img40">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang40"/>';
                            page+='</div>';
                        }else{
                            var imgage1=img[i].img;
                            var flg='_thumb';
                            var img1=insert_flg(imgage1,flg,37);

                            if(img[i].transform!=null){
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }else{
                                page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                            }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b14-1.png" alt="" class="content14-img"/>';
        page += '<div class="In In_14">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,14)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入31个字" maxlength="31" value=""  class="input input14"/>';
        page += '</div>';
        page += '<div class="Input14">';
        page += '<div class="text text14 ">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入31个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_15">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,15)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入26个字" maxlength="26" value=""  class="input input15"/>';
        page += '</div>';
        page += '<div class="Input15">';
        page += '<div class="text text15 "">';
        if(text1){
            if(text1.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text1+'"></div>';
            }else{
                page+=text1;
            }

        }
        else{
            page+="最多输入26个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}

function t15(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content15">';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,16)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入200个字" maxlength="200" value=""  class="input input16"/>';
        page += '</div>';
        page += '<div class="Input16">';
        page += '<div class="text text16 ">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text1;
            }

        }
        else{
            page+="最多输入200个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t16(inpage){
    $.post(WST.U('WebApp/QqPhotoBooks/editPage'),{page:inpage,qbId:qbId},function(json) {
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content16">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';
        page += '<div class="renewal r41" onclick="renewal(1,41)">';
        page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>上传图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img41">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang41"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);

                        if(img[i].transform!=null){
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }else{
                            page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                        }
                    }

                }
            }
        }
        else{
            page += '<img src="'+WST.ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page+='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
